<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('basic',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('basic');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'参数设置',
		'edit'=>array(
			array('type'=>'radio','title'=>'PayPal支付环境','name'=>'isdemo','options'=>'isdemo'),
			array('type'=>'switch','title'=>'自动同步运单号到PayPal','name'=>'isuporder'),
			array('type'=>'string','title'=>'Client ID','name'=>'api_id'),
			array('type'=>'string','title'=>'Client Secret','name'=>'api_secret'),
		),
	);
	$return['isdemo']=array('正式环境','沙盒环境');
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
